#include "bsp_cpuid.h"
#include "amLog.h"

static BspCpuId_st g_cpu_id = {0};

void bsp_cpu_id_init(void)
{
    g_cpu_id.id[0] = HAL_GetUIDw0();
    g_cpu_id.id[1] = HAL_GetUIDw1();
    g_cpu_id.id[2] = HAL_GetUIDw2();
    LOG_TS(AM_LOG_LEVEL_INFO, "CPUID", "0x%x %x %x\n", g_cpu_id.id[0], g_cpu_id.id[1], g_cpu_id.id[2]);
}

BspCpuId_st *bsp_cpu_id_read(void)
{
    return &g_cpu_id;
}